.class public Ldgb/a2;
.super Ljava/lang/Object;
.source "SourceFile"


# static fields
.field private static final a:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ldgb/x1;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Ljava/util/LinkedHashMap;

    invoke-direct {v0}, Ljava/util/LinkedHashMap;-><init>()V

    sput-object v0, Ldgb/a2;->a:Ljava/util/Map;

    return-void
.end method

.method public static a(Ljava/lang/String;)Ldgb/x1;
    .locals 3

    .line 24
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    return-object v1

    .line 25
    :cond_0
    sget-object v0, Ldgb/a2;->a:Ljava/util/Map;

    monitor-enter v0

    .line 26
    :try_start_0
    sget-object v2, Ldgb/a2;->a:Ljava/util/Map;

    invoke-interface {v2, p0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 27
    sget-object v1, Ldgb/a2;->a:Ljava/util/Map;

    invoke-interface {v1, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ldgb/x1;

    monitor-exit v0

    return-object p0

    .line 28
    :cond_1
    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception p0

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p0
.end method

.method public static a(Landroid/content/Context;)V
    .locals 1

    .line 1
    sget-object p0, Ldgb/a2;->a:Ljava/util/Map;

    monitor-enter p0

    .line 2
    :try_start_0
    sget-object v0, Ldgb/a2;->a:Ljava/util/Map;

    invoke-interface {v0}, Ljava/util/Map;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 3
    monitor-exit p0

    return-void

    .line 4
    :cond_0
    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 5
    new-instance p0, Ldgb/w1;

    invoke-direct {p0}, Ldgb/w1;-><init>()V

    .line 6
    invoke-interface {p0}, Ldgb/x1;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p0}, Ldgb/a2;->a(Ljava/lang/String;Ldgb/x1;)Z

    .line 7
    new-instance p0, Ldgb/y1;

    invoke-direct {p0}, Ldgb/y1;-><init>()V

    .line 8
    invoke-interface {p0}, Ldgb/x1;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p0}, Ldgb/a2;->a(Ljava/lang/String;Ldgb/x1;)Z

    .line 9
    new-instance p0, Ldgb/b2;

    invoke-direct {p0}, Ldgb/b2;-><init>()V

    .line 10
    invoke-interface {p0}, Ldgb/x1;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p0}, Ldgb/a2;->a(Ljava/lang/String;Ldgb/x1;)Z

    .line 11
    new-instance p0, Ldgb/z1;

    invoke-direct {p0}, Ldgb/z1;-><init>()V

    .line 12
    invoke-interface {p0}, Ldgb/x1;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p0}, Ldgb/a2;->a(Ljava/lang/String;Ldgb/x1;)Z

    .line 13
    new-instance p0, Ldgb/v1;

    invoke-direct {p0}, Ldgb/v1;-><init>()V

    .line 14
    invoke-interface {p0}, Ldgb/x1;->a()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p0}, Ldgb/a2;->a(Ljava/lang/String;Ldgb/x1;)Z

    return-void

    :catchall_0
    move-exception v0

    .line 15
    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0
.end method

.method public static a(Ljava/lang/String;Ldgb/x1;)Z
    .locals 3

    .line 16
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_3

    if-nez p1, :cond_0

    goto :goto_0

    .line 17
    :cond_0
    invoke-interface {p1}, Ldgb/x1;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-nez p0, :cond_1

    return v1

    .line 18
    :cond_1
    sget-object p0, Ldgb/a2;->a:Ljava/util/Map;

    monitor-enter p0

    .line 19
    :try_start_0
    sget-object v0, Ldgb/a2;->a:Ljava/util/Map;

    invoke-interface {p1}, Ldgb/x1;->a()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 20
    monitor-exit p0

    return v1

    .line 21
    :cond_2
    sget-object v0, Ldgb/a2;->a:Ljava/util/Map;

    invoke-interface {p1}, Ldgb/x1;->a()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const/4 p1, 0x1

    .line 22
    monitor-exit p0

    return p1

    :catchall_0
    move-exception p1

    .line 23
    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1

    :cond_3
    :goto_0
    return v1
.end method
